package com.gxa.saas.portal.service;

import com.gxa.saas.core.entity.domain.luoj.PictureDo;
import com.gxa.saas.core.entity.dto.luoj.CollectionDTO;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.List;

public interface CollectionService {

    /*
    * 添加到收藏中
    * */
    Integer addCollection(@Validated CollectionDTO collection);

    /*
    * 取消收藏
    * */
    Integer cancelCollection(@Validated CollectionDTO collection);

    /*
    * 查看所有收藏
    * */
    List<PictureDo> queryAllCollection(@Validated @NotNull(message = "用户id不能为空") Integer userId);

}
